home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVWREPCH.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  33 lines

  1. /*=======================================================*/
  2. /*  TVWREPCH.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_repchar   repeatedly write character with def   */
  16. /*                 attribute                             */
  17. /*   Ralf Brown 4/3/88                                   */
  18. /*=======================================================*/
  19.  
  20. void pascal TVwin_repchar(OBJECT win,int c,int count)
  21. {
  22.    static BYTE stream[] = { S_WINDOW(3), 0, 0, 0 } ;
  23.  
  24.    if (count >= 0x800)
  25.       count = 0 ;
  26.    stream[4] = 0x88 | ((count >> 8) & 7) ;
  27.    stream[5] = count & 0xFF ;
  28.    stream[6] = c ;
  29.    TVwin_stream(win,stream) ;
  30. }
  31.  
  32. /* End of TVWREPCH.C */
  33.